<?php if(count($model->getErrors()) > 0):?>
	<div class="alert alert-error">
		<?php echo CHtml::errorSummary($model); ?>
	</div>
<?php endif;?>
<?php echo CHtml::beginForm(); ?>
	<fieldset>
		<legend>Регистрация</legend>
		
		<?php echo CHtml::activeLabelEx($model,'email'); ?>
		<?php echo CHtml::activeTextField($model,'email'); ?>
		
		<?php echo CHtml::activeLabelEx($model,'password'); ?>
		<?php echo CHtml::activePasswordField($model,'password'); ?>
		
		<?php echo CHtml::activeLabelEx($model,'passwordConfirm'); ?>
		<?php echo CHtml::activePasswordField($model,'passwordConfirm'); ?>
		
		
		<?php echo CHtml::activeLabel($model,'name'); ?>
		<?php echo CHtml::activeTextField($model,'name'); ?>
		
		<?php echo CHtml::activeLabel($model,'lastname'); ?>
		<?php echo CHtml::activeTextField($model,'lastname'); ?>
		
		<?php echo CHtml::activeLabel($model,'country'); ?>
		<?php echo CHtml::activeTextField($model,'country'); ?>
		
		<?php echo CHtml::activeLabel($model,'city'); ?>
		<?php echo CHtml::activeTextField($model,'city'); ?>
		
		<?php echo CHtml::activeLabelEx($model, 'verifyCode')?>
		<?php $this->widget('CCaptcha')?>
		<br>
		<?php echo CHtml::activeTextField($model, 'verifyCode')?>
		
		<br>
		<?php echo CHtml::submitButton('Зарегистрироваться'); ?>
	</fieldset>
<?php echo CHtml::endForm(); ?>